var gulp = require('gulp');
var browser = require('browser-sync');
var browserSync = browser.create();

var PORT = 4000;
var loadMap = [
  './dist/*.*',
  './demo/*.*',
  './mock/*.*'
];
gulp.task('server',function(){
      browserSync.init({
            server:'./',
            port:PORT
      });
      gulp.watch(loadMap,function(file){
          console.log(file.path);
          browserSync.reload();
      });
      console.log('start server ------ http://127.0.0.1:'+PORT);
});